import { BaseMongoClient } from "../controller/mongodb";

//普通信息表
export interface FaucetInterface {
    _id: string
    id:string
    name: string
    currency: string
    url:string
    timezone:string
    owner_id:number
    owner_name:string
    total_users_paid:number
    health:number
    active_users:number
    category:string
    balance:string

}


export interface FaucetDataViews {

    _id:string
    name: string
    url: string
    currency: string
    id:number
    lastPayment: number
    balance: string
    paid_hour: number
    paid_day: number
    createTime: string
    active_users:number
    owner_user:string
    paid_week:number

}

export interface ClientInterface{
    faucetClient:BaseMongoClient<FaucetInterface>,
    fiveClient:BaseMongoClient<FiveMinitesReportInterface>,
    hourClient:BaseMongoClient<HourlyReportInterface>,
    dailyClient:BaseMongoClient<DailyReportInterface>,
    lastClient:BaseMongoClient<LastPaidInterface>
}


export interface ParamterInterface{
    page:number,
    size:number,
    currencyName:string,
    sortName:string
    strat:number
    end:number
    order:string,
    name:string
}


export interface chartsInterface{
    name:string,
    type:string,
    stack:string,
    data:number[]
}
export interface ReportInterface {
    _id:string

    faucet_id: string
    //数据
    timezone:string
    total: number
}

export interface LastPaidInterface{
    _id:string,
    faucet_id:string,
    last_paid_mins:number,
    paid_today:number,
    operationTime:string
}

//天数
export interface DailyReportInterface extends ReportInterface {
    
}
//小时
export interface HourlyReportInterface extends ReportInterface {
    
}
//5分钟
export interface FiveMinitesReportInterface extends ReportInterface {
}


